#include<stdio.h>
#include<stdbool.h>

int main()
{
	int in;
	bool a, b;
	char c1, c2;
	scanf("%d", &in);
	a=in;
	scanf("%d", &in);
	b=in;
	getchar();
	scanf("%c%c", &c1, &c2);	
	if (c2 == '&')
	{
		printf("%d&&%d=%d\n", a, b, (a&&b));
	}
	else
	{
		printf("%d||%d=%d\n", a, b, (a||b));
	}
	return 0;
}
